{extend name="base" /}
{block name="body"}
<div class="layui-body">
    <!--tab标签-->
    <div class="layui-tab layui-tab-brief">
        <ul class="layui-tab-title">
            <li class="layui-this">分享设置</li>
        </ul>
        <div class="layui-tab-content">
            <div class="layui-tab-item layui-show">
                <form class="layui-form form-container" action="{:url('admin/Share/upd')}" method="post">
                    <div class="layui-form-item">
                        <label class="layui-form-label">分享标题</label>
                        <div class="layui-input-block">
                            <input  name="shareTitle" value="{$picture['shareTitle']}" required lay-verify="required" placeholder="请输入标题" class="layui-input" style="width: 450px">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">分享图标</label>
                        <div class="layui-input-block">
                            <input type="text" name="shareIcon" value="{$picture['shareIcon']}" placeholder="（选填）请上传图标" class="layui-input layui-input-inline" id="thumb">
                            <input type="file" name="file" class="layui-upload-file">
                        </div>
                        <div style="margin-top:-50px;margin-left:430px">
                            <img src="/public/{$picture.shareIcon}" id="preview" style="width: 100px;height: 100px;"/>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">分享描述</label>
                        <div class="layui-input-block">
                            <textarea name="shareDesc" placeholder="（选填）请输入描述" id="description" class="layui-textarea" style="width: 450px">{$picture['shareDesc']}</textarea>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-input-block">
                            <input type="hidden" value="{$picture['id']}" name="id">
                            <button class="layui-btn" lay-submit lay-filter="*">更新</button>
                            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
{/block}